<template>
  <div class="warp">
    <h1>{{ title }}分类</h1>
    <slot></slot>
     <slot name="content" :msg="msg" :count="1" sex="男"></slot>
  </div>
</template>

<script>
export default {
  name: "Tab",
  props: ["title"],
  data() {
    return {
      msg: ["小王", "老王", "王中王"],
    };
  },
};
</script>

<style>
.wrap {
  width: 250px;
  height: 350px;
  background-color: aquamarine;
}
.wrap h1 {
  background: pink;
}
</style>
